package ca.paulshin.yunatube.common;

import android.app.Activity;
import android.app.Dialog;
import android.widget.ImageView;
import ca.paulshin.yunatube.R;

public class CustomDialog extends Dialog {

	public CustomDialog(final Activity activity, int dialogImageResId) {
		super(activity, R.style.Theme_YunaTubeDialog);
		this.setContentView(R.layout.dialog_loading);
		this.setCancelable(true);
		
		ImageView image = (ImageView)findViewById(R.id.dialogImage);
		image.setImageResource(dialogImageResId);
	}
}
